package com.qiyue.admin.rpc;

import com.qiyue.admin.biz.GateLogBiz;
import com.qiyue.admin.constant.AdminCommonConstant;
import com.qiyue.admin.entity.GateLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by y747718944 on 2018/2/7
 * 暴露给门户用的保存日志
 */
@RestController
@RequestMapping(AdminCommonConstant.URL.URI_API)
@Api("门户日志")
public class LogRest {


    @Autowired
    private GateLogBiz gateLogBiz;

    @PostMapping("/log/save")
    @ApiOperation("保存门户日志")
    public void saveGateLog(@RequestParam(name = "log")GateLog log){

        gateLogBiz.save(log);
    }
}
